module.exports = {
    onShow() {
        if (typeof this.getTabBar === 'function' && this.getTabBar()) {
            const { selected } = this.data;
            this.getTabBar().setData({
                selected: typeof selected === 'number' && selected >= 0 ? selected : 0, //选中效果 当前tabBar页面在list中对应的下标，
            });
        }
    },
};
